const mongoose = require('./../db')
const Schema = mongoose.Schema

const schema = new Schema({
  teaid: { type: String, required: true },
  teanum: { type: Number, required: true },
  teaname: { type: String, required: true },
  sex: { type: Number, required: true },
  password: { type: String, required: true },
  // 2超级管理员  1 老师
  role: { type: Number, required: true },
  checkedKeys: { type: Array, required: true },
})

module.exports = mongoose.model('Teacher', schema)
